﻿﻿using System;
using System.Collections.Generic;

using formworks.DBO.Attributes;

namespace entity
{
    /// <summary>
    /// 实体类：goods
    /// 数据库名称：goods
    /// 描述：的实体类
    ///</summary>
    [TableEntity("goods", "物质数据")]
    public class Goods
    {

        /// <summary>
        /// ID
        /// </summary>
        [Fields("id", "varchar", 36, false, 0, "ID")]
        [Constraints(Constraints.Types.PrimaryKey, "PK__goods__023D5A04", "id", "", "")]
        public string id { get; set; }


        /// <summary>
        /// 商品名称
        /// </summary>
        [Fields("name", "varchar", 36, false, 0, "商品名称")]

        public string name { get; set; }


        /// <summary>
        /// 标准
        /// </summary>
        [Fields("stand", "varchar", 20, true, 0, "标准")]

        public string stand { get; set; }


        /// <summary>
        /// 单价
        /// </summary>
        [Fields("money", "int", 4, true, 0, "单价")]

        public int money { get; set; }


        /// <summary>
        /// 库存
        /// </summary>
        [Fields("leavings", "int", 4, true, 0, "库存")]

        public int leavings { get; set; }


        /// <summary>
        /// 已经订购
        /// </summary>
        [Fields("orders", "int", 4, true, 0, "已经订购")]

        public int orders { get; set; }



    }//end goods
}//end namespace